1. /* slmsetln.cpp by K.Tsuru */
  2. // function ID = 205 DRADIX, BRADIX
  3. /********************************
  4. SLong , SInteger class
  5. set a long value v
  6. *********************************/
  7. #ifndef SN_H
  8. #include "sn.h"
  9. #endif
  10. void SLong::SetLong(long v){
  11. if( RawSign() ) SetZero();
  12. if(v == 0) return;
  13. long absV = labs(v), rdx = (long)Radix();
  14. uint j = 0;
  15. while(absV){
  16. figure[j] = (fType)(absV % rdx);
  17. absV /= rdx; j++;
  18. }
  19. aHead = j-1;
  20. while(figure[aTail] == 0) aTail++;
  21. SetSign(v);
  22. }

slmsetln.cpp : last modifiled at 2017/03/13 14:32:01(511 bytes)
created at 2017/10/07 10:26:49
The creation time of this html file is 2017/11/09 14:52:03 (Thu Nov 09 14:52:03 2017).